package com.study.practice.activeMQ.consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * ActiveMQ队列的消费者
 */
@Component
public class Consumer {

   // @JmsListener(destination = "ActiveMQQueue")
    public void handleMessage(String name) {
        System.out.println("成功接收到消息:" + name);
    }
}
